Skip to main content

All Questions

1vote
2answers
53views

How to optimize SQL query and create index [closed]

I need to generate statistics for different types of disabilities and count how many women, who started suffering from each condition in 2018, were affected during each week of January (first month of ...
Sissa's user avatar
-2votes
2answers
67views

Inserting root id to all its children

I have a table with hierarchy v_name **id: name: child_id** 1000 abc null 1001 bac 1000 1002 cab 1001 1003 lop 1001 1004 jui null 1005 njj 1004 Now we are ...
Rajib Sharma's user avatar
0votes
2answers
49views

Recursive CTE query runs indefinitely when joining two CTEs

I have two Common Table Expressions (CTEs) in an Oracle SQL query. Both CTEs (CTE_CID and CTE_BEN_DT) return results quickly when executed separately. However, when I join them and add a WHERE clause, ...
Deepak Ananth's user avatar
1vote
0answers
76views

Performance issue with a view on large tables with more than 25 billion rows [closed]

The STG_USR_ACCSS table has more than 25 billion rows. Creating a view by joining other tables, when we query the data from the view, it's taking forever to return the results. Please help me to ...
OracleLearner's user avatar
0votes
1answer
46views

Oracle db query full scan vs index

I have an Oracle table that contains a lot of data that is separated into partitions by COLUMN1 (VARCHAR2). This table also has COLUMN2 (DATE). There is an index (with same partitions as the main ...
Jegsar's user avatar
0votes
2answers
169views

Merge Is taking so much time in Oracle

I have a table with 36 million record and I need to update fields on some conditions but it is taking 10 min for each query and I have many queries to run : MERGE INTO account USING ( SELECT id,...
MIX 2000's user avatar
2votes
1answer
54views

Oracle Strange Index Behavior?

I have a non-clustered index on this column (TOM) in this table (SP_ORD_1PC_PASS). This query returns instantly: SELECT MAX(TOM) FROM SP_ORD_1PC_PASS This query also returns instantly: SELECT MIN(TOM)...
ImaginaryHuman072889's user avatar
1vote
1answer
91views

Entity Framework 8 Query Slower Than Direct Oracle Command

I'm currently working on a C# project where I need to retrieve data from an Oracle 19 database. I'm using Entity Framework to handle the database queries. However, I've noticed a significant ...
Théo Uzan's user avatar
1vote
1answer
383views

Event read by other session causing blocks

I have noticed in the database some blocks, the event was read by other session, I have identified the table and the index causing that. However I have noticed the table statistics are 3 month old ...
Baalback's user avatar
1vote
3answers
114views

Optimizing complex select Oracle Query

I've a below select Query which is taking lot of time when data is huge. It is a join from 4 diffrent tables and I want to create a view for it. I'm not able to find any optimizing techniques to make ...
jasmeet24's user avatar
0votes
1answer
50views

Performance Issues with MERGE Procedure in Oracle - Wrong query?

I am currently facing performance issues with an Oracle stored procedure that performs a MERGE operation between two tables. The purpose of this procedure is to archive changes from one table to ...
Gabry's user avatar
0votes
1answer
48views

Oracle bitmap_construct_agg matview with fast refresh

The question is: Is that possible? Or, because of bitmap_construct_agg returns BLOB or RAW it is not possible at all? This is my test case: create table testmvb(id number, subid number); create ...
Andrew Klimov's user avatar
0votes
1answer
162views

Big speed difference for the same query executed on 2 different Oracle schemas

I have 2 different schemas installed on the same Oracle server (v12c). On each of these 2 schemas, I have the same DB LINK which points to a distant database which allows me to read a table (size ±12,...
b126's user avatar
  • 1,248
0votes
3answers
116views

In a table with As and Bs, select those As for which the Bs are all associated with a given list of B_criteria

Given the following table structure: Table A a 1 2 3 Table AB a b 1 1 1 2 1 3 2 1 2 2 3 2 3 3 Table B b 1 2 3 Problem description: Given a list of b's, I want to query those a's which are associated ...
lukstei's user avatar
-1votes
1answer
21views

Will select query get executed if it written in SP or Package declaration?

Create or Replace package SamplePackage As Cursor cur is select * from abc; refCurParam as ref cursor return cur%rowtype; Begin End SamplePackage; The above package used in SP in order to define type ...
venkatesh kancheti's user avatar

153050per page
close